package controllers;

import play.mvc.Controller;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;

public class TwitterJ extends Controller {
	
	public static void twitter(){
		render();
	}
	
	public static void login(String username,String password){
		try{
			Twitter mi_twitter=new TwitterFactory().getInstance();
			mi_twitter.verifyCredentials();
		}catch(TwitterException e){
			System.out.println("Error al loguear"+e.getMessage());
		}
	}

}
